﻿
@{
    ViewBag.Title = "Web service: get mail list";
}

<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<h2>Web service: Get mail list</h2>

  <script type="text/javascript">
      $(function () {
          $("#from").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd' });
          $("#to").datepicker({ changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd' });
      });
  </script>


@using (Ajax.BeginForm("Search", "WebService", new AjaxOptions { HttpMethod = "POST", InsertionMode = InsertionMode.Replace, UpdateTargetId = "searchResult" }))
{
    @:from:
    <input type="text" id="from" name="from"/>
    @:till:
    <input type="text" id="to" name="to"/>
    @:keyword:
    <input type="text" id="q" name="q" />
    <input type="submit" value="Search" />
}    


<div id="searchResult">

</div>
